<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/struts/taglibs.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="./style/alternative.css" media="all" rel="stylesheet" />
<style type="text/css">
#roleList {
width:95%;
border: 2px broove #eee;
margin-top: 1em;
line-height:1.8em;
}
#roleList th{
text-align:center
}
#roleList td{
border: 1px solid #eee;
}
#roleAction {
padding-left: 1.1em;
word-spacing:normal;
text-align:left;
}
</style>
<script type='text/javascript' src='script/prototype.js'></script>
<SCRIPT LANGUAGE="JavaScript">
function changeRole()
{
    var oRole = document.getElementById("roleID");
    var roleID =oRole.options[oRole.selectedIndex].value;
    location.replace("role.htm?method=retrieve&roleID="+roleID);

}
function submitForm(method) {
	location.href = "role.htm?method=add";
}
</script>
</head>
<body>
<div id="content">
    <div id="content_inner">
<FORM METHOD="POST" name="roleForm" id="roleForm" ACTION="DebugServlet">
<br>
<display:table htmlId="roleList" name="roleList" sort="list" 
     class="its" id="role" requestURI="role.htm">
<display:setProperty name="basic.empty.showtable" value="true" />
<display:setProperty name="basic.msg.empty_list_row" value="<tr class='empty'><td colspan='{0}'>没有记录</td></tr>"/>

<display:column title="角色" sortable="true" headerClass="sortable">
<a href="role.htm?method=edit&roleID=${role.roleID}">${role.roleName}</a>
</display:column>
<display:column property="description" title="细节" sortable="true" headerClass="sortable"/>
<display:column title="<INPUT TYPE=\"button\" name=\"action\" onclick=\"submitForm('add')\" value=\"增加角色\">" class="taskOperation">
<a href="role.htm?method=edit&roleID=${role.roleID}" class="icon_btn pic_edit" title="Edit Role"><span>Edit Role</span></a>
<a href="role.htm?method=delete&roleID=${role.roleID}" class="icon_btn pic_delete" title="Delete Role"><span>Delete Role</span></a>
</display:column> 
</display:table>
<div id="roleAction">
<input type="hidden" name="method" id="method">
</div>
</form>
</div><!-- content_inner -->
</div><!-- content -->
